home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _75AD0D123D804C8FBB5B8AB8E4CDFB88 < prev    next >
Encoding:
Text File  |  2004-01-06  |  4.0 KB  |  152 lines

  1. Script:LoadScript("scripts/materials/commoneffects.lua");
  2. --#Script:LoadScript("scripts/materials/mat_metal_plate.lua")
  3.  
  4. Materials["mat_metal_plate"] = {
  5.  
  6.     type="mat_metal_plate",
  7. -------------------------------------
  8.     PhysicsSounds=PhysicsSoundsTable.Hard,
  9. -------------------------------------    
  10.     bullet_drop_single = CommonEffects.common_bullet_drop_single_metal,
  11.     bullet_drop_rapid = CommonEffects.common_bullet_drop_rapid_metal,
  12. -------------------------------------    
  13.     bullet_hit = {
  14.         sounds = {
  15.             {"Sounds/bullethits/Mbullet1.wav",SOUND_UNSCALABLE,200,5,60},
  16.             {"Sounds/bullethits/Mbullet2.wav",SOUND_UNSCALABLE,200,5,60},
  17.             {"Sounds/bullethits/Mbullet3.wav",SOUND_UNSCALABLE,200,5,60},
  18.             {"Sounds/bullethits/Mbullet4.wav",SOUND_UNSCALABLE,200,5,60},
  19.             
  20.         },
  21.         
  22.         decal = { 
  23.             texture = System:LoadTexture("Textures/Decal/metal.dds"),
  24.             scale = 0.04,
  25.         },
  26.         
  27.         particleEffects = {
  28.             name = "bullet.hit_metal.a",
  29.         },
  30.     },
  31.  
  32.     pancor_bullet_hit = {
  33.         sounds = {
  34.             {"Sounds/bullethits/Mbullet1.wav",SOUND_UNSCALABLE,200,5,60},
  35.             {"Sounds/bullethits/Mbullet2.wav",SOUND_UNSCALABLE,200,5,60},
  36.             {"Sounds/bullethits/Mbullet3.wav",SOUND_UNSCALABLE,200,5,60},
  37.             {"Sounds/bullethits/Mbullet4.wav",SOUND_UNSCALABLE,200,5,60},
  38.             
  39.         },
  40.         
  41.         decal = { 
  42.             texture = System:LoadTexture("Textures/Decal/metal.dds"),
  43.             scale = 0.04,
  44.         },
  45.         
  46.         particleEffects = {
  47.             name = "bullet.hit_metal_pancor.a",
  48.         },
  49.     },
  50.  
  51.     
  52.  
  53. -------------------------
  54.     melee_punch = {
  55.         sounds = {
  56.             {"sounds/player/footsteps/metal/step1.wav",SOUND_UNSCALABLE,185,5,30},
  57.             {"sounds/player/footsteps/metal/step2.wav",SOUND_UNSCALABLE,185,5,30},
  58.             {"sounds/player/footsteps/metal/step3.wav",SOUND_UNSCALABLE,185,5,30},
  59.             {"sounds/player/footsteps/metal/step4.wav",SOUND_UNSCALABLE,185,5,30},
  60.         },
  61.     },
  62.     melee_slash = {
  63.         sounds = {
  64.             {"sounds/weapons/machete/macheteplate2.wav",SOUND_UNSCALABLE,185,5,30},
  65.             {"sounds/weapons/machete/macheteplate3.wav",SOUND_UNSCALABLE,185,5,30},
  66.             {"sounds/weapons/machete/macheteplate4.wav",SOUND_UNSCALABLE,185,5,30},
  67.             {"sounds/weapons/machete/macheteplate5.wav",SOUND_UNSCALABLE,185,5,30},
  68.         },
  69.         particles = CommonEffects.common_machete_hit_particles.particles,
  70.  
  71.         decal = { 
  72.             texture = System:LoadTexture("Textures/Decal/metal_slash.dds"),
  73.             scale = 0.1,
  74.             random_scale = 100,
  75.             random_rotation = 0.5,
  76.         },
  77.     },
  78.     flashgrenade_hit =         
  79.     {
  80.             particles = 
  81.         {
  82.             { --HitMetalSparksTrail
  83.                 focus = 0.0,
  84.                 color = {1,1,1},
  85.                 speed = 8.0,
  86.                 count = 25, --default 15
  87.                 size = 0.045, 
  88.                 size_speed=0,
  89.                 gravity={x=0,y=0,z=-5},
  90.                 lifetime=0.5,
  91.                 tid = System:LoadTexture("Textures/Decal/Spark.dds"),
  92.                 tail_length = 0.2,
  93.                 frames=0,
  94.                 blend_type = 2
  95.             },
  96.         },
  97.     },
  98.     projectile_hit =     {
  99.     
  100.         particleEffects = {
  101.             name = "explosions.rocket.a",
  102.         },    
  103.     
  104.             particles = 
  105.         {
  106.             { --HitMetalSparksTrail
  107.                 focus = 0.0,
  108.                 color = {1,1,1},
  109.                 speed = 8.0,
  110.                 count = 25, --default 15
  111.                 size = 0.045, 
  112.                 size_speed=0,
  113.                 gravity={x=0,y=0,z=-5},
  114.                 lifetime=0.5,
  115.                 tid = System:LoadTexture("Textures/Decal/Spark.dds"),
  116.                 tail_length = 0.2,
  117.                 frames=0,
  118.                 blend_type = 2
  119.             },
  120.         },
  121.     },
  122.     mortar_hit = flashgrenade_hit,
  123.     smokegrenade_hit = flashgrenade_hit,
  124.     grenade_hit = flashgrenade_hit,
  125.     
  126. -------------------------------------
  127.     player_walk = CommonEffects.player_metal_walk,
  128.     player_run = CommonEffects.player_metal_run,
  129.     player_crouch = CommonEffects.player_metal_crouch,
  130.     player_prone = CommonEffects.player_metal_prone,
  131.     player_walk_inwater = CommonEffects.player_walk_inwater,
  132.     player_drop = {
  133.         sounds = {
  134.             {"sounds/player/bodyfalls/bodyfallrock1.wav",SOUND_UNSCALABLE,210,10,150},
  135.             {"sounds/player/bodyfalls/bodyfallrock2.wav",SOUND_UNSCALABLE,210,10,150},
  136.         },
  137. --        decal = { 
  138. --            texture = System:LoadTexture("Textures/Decal/Default.tga"),
  139. --            scale = 0.1,
  140. --        },
  141.     },
  142.     gameplay_physic = {
  143.         piercing_resistence = 15,
  144.         friction = 0.8,
  145.         bouncyness= 0.2, --default 0
  146.     },
  147.  
  148.     AI = {
  149.         fImpactRadius = 5,
  150.     },
  151.             
  152. }